package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.util.Date;

/**
 * 客户投诉表 complaint
 * 
 * @author chengenjiang
 * @date 2019-07-16
 */
public class Complaint extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 客户投诉ID */
	@Excel(name = "客户投诉ID")
	private Integer complaintId;
	/** 被投诉商家ID */
	private Integer businessinfoId;
	/** 投诉概要 */
	@Excel(name = "投诉概要")
	private String resumes;
	/** 投诉内容详情 */
	@Excel(name = "投诉内容详情")
	private String complaintContext;
	/** 投诉者ID */

	private Long huiyuanId;
	/** 投诉者电话 */
	@Excel(name = "投诉者电话")
	private String telphone;
	/** 投诉时间 */
	@Excel(name = "投诉时间")
	private Date complaintTime;
	/** 投诉类型ID */
	private Integer complaintTypeId;
	/** 处理进度 */
	@Excel(name = "手机号码")
	private String chuliJindu;
	/** 创建时间 */
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date createTime;
	/** 修改时间 */
	@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date updateTime;
	/** 扩展字段 */
	@Excel(name = "手机号码")
	private String attribute;
	/**
	 * 投诉类型实体
	 */
	@Excel(name = "投诉类型",targetAttr = "businesstypeName", type = Excel.Type.EXPORT)
	private Complainttype complainttype;
	/**
	 * 商家信息表
	 */
	@Excel(name = "商家名称",targetAttr = "businessinfoName", type = Excel.Type.EXPORT)
	private Businessinfo businessinfo;
	/**
	 * 会员信息表
	 */
	@Excel(name = "会员名称",targetAttr = "userName", type = Excel.Type.EXPORT)
	private SysUser sysUser;

	public void setComplaintId(Integer complaintId) 
	{
		this.complaintId = complaintId;
	}

	public Integer getComplaintId() 
	{
		return complaintId;
	}
	public void setBusinessinfoId(Integer businessinfoId) 
	{
		this.businessinfoId = businessinfoId;
	}

	public Integer getBusinessinfoId() 
	{
		return businessinfoId;
	}
	public void setResumes(String resumes) 
	{
		this.resumes = resumes;
	}

	public String getResumes() 
	{
		return resumes;
	}
	public void setComplaintContext(String complaintContext) 
	{
		this.complaintContext = complaintContext;
	}

	public String getComplaintContext() 
	{
		return complaintContext;
	}
	public void setHuiyuanId(Long huiyuanId)
	{
		this.huiyuanId = huiyuanId;
	}

	public Long getHuiyuanId()
	{
		return huiyuanId;
	}
	public void setTelphone(String telphone) 
	{
		this.telphone = telphone;
	}

	public String getTelphone() 
	{
		return telphone;
	}
	public void setComplaintTime(Date complaintTime)
	{
		this.complaintTime = complaintTime;
	}

	public Date getComplaintTime()
	{
		return complaintTime;
	}
	public void setComplaintTypeId(Integer complaintTypeId) 
	{
		this.complaintTypeId = complaintTypeId;
	}

	public Integer getComplaintTypeId() 
	{
		return complaintTypeId;
	}
	public void setChuliJindu(String chuliJindu) 
	{
		this.chuliJindu = chuliJindu;
	}

	public String getChuliJindu() 
	{
		return chuliJindu;
	}

	public void setAttribute(String attribute)
	{
		this.attribute = attribute;
	}

	public String getAttribute() 
	{
		return attribute;
	}
	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("complaintId", getComplaintId())
            .append("businessinfoId", getBusinessinfoId())
            .append("resumes", getResumes())
            .append("complaintContext", getComplaintContext())
            .append("huiyuanId", getHuiyuanId())
            .append("telphone", getTelphone())
            .append("complaintTime", getComplaintTime())
            .append("complaintTypeId", getComplaintTypeId())
            .append("chuliJindu", getChuliJindu())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("attribute", getAttribute())
            .toString();
    }


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Complainttype getComplainttype() {
		return complainttype;
	}

	public void setComplainttype(Complainttype complainttype) {
		this.complainttype = complainttype;
	}

	public Businessinfo getBusinessinfo() {
		return businessinfo;
	}

	public void setBusinessinfo(Businessinfo businessinfo) {
		this.businessinfo = businessinfo;
	}

	public SysUser getSysUser() {
		return sysUser;
	}

	public void setSysUser(SysUser sysUser) {
		this.sysUser = sysUser;
	}
}
